<?php
/**
 * 孙强创建的文件
 *
 * Created by PhpStorm.
 * User: sunqiang
 * Date: 2018/12/26
 * Time: 下午7:16
 */

namespace App\Http\Controllers;


use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;

class BloomController extends Controller
{
    public function __invoke(Request $request)
    {
        Mail::raw('测试邮件' . date('Y-m-d h:i:s', time()), function ($message) {
            $mailUsername = config('mail.username');
            $message->from($mailUsername, 'skycityls');
            $message->to('870425496@qq.com', '870425496');
            $message->subject('Subject');
        });
        return $request->input('name') . 'hello lar_bloom' . date('Y-m-d h:i:s', time());
    }

    public function test($uk)
    {
        echo substr(md5($uk), 0, 6);
    }
}